<html><head><title>Calculating Time Differences</title><meta name="filename" content="text/scalc/guide/calc_timevalues"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
p.P1{
}
</style></head><body>
<p class="P1"/>
<p class="Head1"><help:paragraphinfo state="U" number="53" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="calculating; time differences" tag="kw68069_1" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="calc_timevalues" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68069">Calculating Time Differences</help:link></help:to-be-embedded></p>
<p class="Paragraph"><help:paragraphinfo state="U" number="54" xmlns:help="http://openoffice.org/2000/help"/>If you want to calculate time differences, for example, the time between 23:30 and 01:10 in the same night, use the following formula:</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="56" xmlns:help="http://openoffice.org/2000/help"/>The later time is B2 and the earlier time is A2. The result of the example is 01:40 or 1 hour and 40 minutes.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="57" xmlns:help="http://openoffice.org/2000/help"/>In the formula, an entire 24-hour day has a value of 1 and one hour has a value of 1/24. The logical value in parentheses is 0 or 1, corresponding to 0 or 24 hours. The result returned by the formula is automatically issued in time format due to the sequence of the operands.</p>